﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;

namespace demo_unit
{
    class Program
    {
    [TestFixture]
        class demounit
        {
            
            int a;
            int b;
            [SetUp]
            public void Setup()
            {
                a = 4;
                b = 6;
            }
            int Tesr()
            {
            return a;
            }

            int sum()
            {
                return a + b;
            }
            int area()
            {
                return a * b;
            }
            
            [Test]
            public void Testsum()
            {
                Assert.AreEqual(10, sum());
            }
            
            [Test]
            public void Testarea()
            {
                Assert.AreEqual(24, area());
            }
        }
        static void Main(string[] args)
        {
        }
    }
}
